package com.yingxin.yxerp.module.inform.controller;

import com.yingxin.yxerp.module.inform.service.IInformWorkService;
import com.yingxin.yxerp.module.inform.vo.resp.InformWorkRespVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 工作通知 前端控制器
 * @author dongpengfei
 * @since 2021-12-10
 */

@RestController
@RequestMapping("/inform/work")
public class InformWorkController {

    @Autowired
    private IInformWorkService informWorkService;

    @ApiOperation(value = "查看列表")
    @PostMapping("/list")
    public List<InformWorkRespVo> list() {
        return informWorkService.listVo();
    }

}
